﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000433 RID: 1075
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EndDrinkMakerSequenceScRsp : IMessage<EndDrinkMakerSequenceScRsp>, IMessage, IEquatable<EndDrinkMakerSequenceScRsp>, IDeepCloneable<EndDrinkMakerSequenceScRsp>, IBufferMessage
	{
		// Token: 0x17000DD4 RID: 3540
		// (get) Token: 0x06003048 RID: 12360 RVA: 0x00085133 File Offset: 0x00083333
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EndDrinkMakerSequenceScRsp> Parser
		{
			get
			{
				return EndDrinkMakerSequenceScRsp._parser;
			}
		}

		// Token: 0x17000DD5 RID: 3541
		// (get) Token: 0x06003049 RID: 12361 RVA: 0x0008513A File Offset: 0x0008333A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EndDrinkMakerSequenceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DD6 RID: 3542
		// (get) Token: 0x0600304A RID: 12362 RVA: 0x0008514C File Offset: 0x0008334C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EndDrinkMakerSequenceScRsp.Descriptor;
			}
		}

		// Token: 0x0600304B RID: 12363 RVA: 0x00085153 File Offset: 0x00083353
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EndDrinkMakerSequenceScRsp()
		{
		}

		// Token: 0x0600304C RID: 12364 RVA: 0x00085168 File Offset: 0x00083368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EndDrinkMakerSequenceScRsp(EndDrinkMakerSequenceScRsp other) : this()
		{
			this.nextSequenceId_ = other.nextSequenceId_;
			this.guest_ = ((other.guest_ != null) ? other.guest_.Clone() : null);
			this.tips_ = other.tips_;
			this.exp_ = other.exp_;
			this.level_ = other.level_;
			this.retcode_ = other.retcode_;
			this.requestList_ = other.requestList_.Clone();
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600304D RID: 12365 RVA: 0x00085211 File Offset: 0x00083411
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EndDrinkMakerSequenceScRsp Clone()
		{
			return new EndDrinkMakerSequenceScRsp(this);
		}

		// Token: 0x17000DD7 RID: 3543
		// (get) Token: 0x0600304E RID: 12366 RVA: 0x00085219 File Offset: 0x00083419
		// (set) Token: 0x0600304F RID: 12367 RVA: 0x00085221 File Offset: 0x00083421
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NextSequenceId
		{
			get
			{
				return this.nextSequenceId_;
			}
			set
			{
				this.nextSequenceId_ = value;
			}
		}

		// Token: 0x17000DD8 RID: 3544
		// (get) Token: 0x06003050 RID: 12368 RVA: 0x0008522A File Offset: 0x0008342A
		// (set) Token: 0x06003051 RID: 12369 RVA: 0x00085232 File Offset: 0x00083432
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerGuest Guest
		{
			get
			{
				return this.guest_;
			}
			set
			{
				this.guest_ = value;
			}
		}

		// Token: 0x17000DD9 RID: 3545
		// (get) Token: 0x06003052 RID: 12370 RVA: 0x0008523B File Offset: 0x0008343B
		// (set) Token: 0x06003053 RID: 12371 RVA: 0x00085243 File Offset: 0x00083443
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Tips
		{
			get
			{
				return this.tips_;
			}
			set
			{
				this.tips_ = value;
			}
		}

		// Token: 0x17000DDA RID: 3546
		// (get) Token: 0x06003054 RID: 12372 RVA: 0x0008524C File Offset: 0x0008344C
		// (set) Token: 0x06003055 RID: 12373 RVA: 0x00085254 File Offset: 0x00083454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x17000DDB RID: 3547
		// (get) Token: 0x06003056 RID: 12374 RVA: 0x0008525D File Offset: 0x0008345D
		// (set) Token: 0x06003057 RID: 12375 RVA: 0x00085265 File Offset: 0x00083465
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000DDC RID: 3548
		// (get) Token: 0x06003058 RID: 12376 RVA: 0x0008526E File Offset: 0x0008346E
		// (set) Token: 0x06003059 RID: 12377 RVA: 0x00085276 File Offset: 0x00083476
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000DDD RID: 3549
		// (get) Token: 0x0600305A RID: 12378 RVA: 0x0008527F File Offset: 0x0008347F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FGMHFCNKNBD> RequestList
		{
			get
			{
				return this.requestList_;
			}
		}

		// Token: 0x17000DDE RID: 3550
		// (get) Token: 0x0600305B RID: 12379 RVA: 0x00085287 File Offset: 0x00083487
		// (set) Token: 0x0600305C RID: 12380 RVA: 0x0008528F File Offset: 0x0008348F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600305D RID: 12381 RVA: 0x00085298 File Offset: 0x00083498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EndDrinkMakerSequenceScRsp);
		}

		// Token: 0x0600305E RID: 12382 RVA: 0x000852A8 File Offset: 0x000834A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EndDrinkMakerSequenceScRsp other)
		{
			return other != null && (other == this || (this.NextSequenceId == other.NextSequenceId && object.Equals(this.Guest, other.Guest) && this.Tips == other.Tips && this.Exp == other.Exp && this.Level == other.Level && this.Retcode == other.Retcode && this.requestList_.Equals(other.requestList_) && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600305F RID: 12383 RVA: 0x00085360 File Offset: 0x00083560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NextSequenceId != 0U)
			{
				num ^= this.NextSequenceId.GetHashCode();
			}
			if (this.guest_ != null)
			{
				num ^= this.Guest.GetHashCode();
			}
			if (this.Tips != 0U)
			{
				num ^= this.Tips.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.requestList_.GetHashCode();
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003060 RID: 12384 RVA: 0x0008543D File Offset: 0x0008363D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003061 RID: 12385 RVA: 0x00085445 File Offset: 0x00083645
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003062 RID: 12386 RVA: 0x00085450 File Offset: 0x00083650
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.guest_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.Guest);
			}
			if (this.NextSequenceId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.NextSequenceId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Level);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			this.requestList_.WriteTo(ref output, EndDrinkMakerSequenceScRsp._repeated_requestList_codec);
			if (this.reward_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.Reward);
			}
			if (this.Exp != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Exp);
			}
			if (this.Tips != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Tips);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003063 RID: 12387 RVA: 0x00085548 File Offset: 0x00083748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NextSequenceId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NextSequenceId);
			}
			if (this.guest_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Guest);
			}
			if (this.Tips != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Tips);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.requestList_.CalculateSize(EndDrinkMakerSequenceScRsp._repeated_requestList_codec);
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003064 RID: 12388 RVA: 0x0008562C File Offset: 0x0008382C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EndDrinkMakerSequenceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NextSequenceId != 0U)
			{
				this.NextSequenceId = other.NextSequenceId;
			}
			if (other.guest_ != null)
			{
				if (this.guest_ == null)
				{
					this.Guest = new DrinkMakerGuest();
				}
				this.Guest.MergeFrom(other.Guest);
			}
			if (other.Tips != 0U)
			{
				this.Tips = other.Tips;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.requestList_.Add(other.requestList_);
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003065 RID: 12389 RVA: 0x00085721 File Offset: 0x00083921
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003066 RID: 12390 RVA: 0x0008572C File Offset: 0x0008392C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num <= 16U)
					{
						if (num == 10U)
						{
							if (this.guest_ == null)
							{
								this.Guest = new DrinkMakerGuest();
							}
							input.ReadMessage(this.Guest);
							continue;
						}
						if (num == 16U)
						{
							this.NextSequenceId = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 48U)
						{
							this.Level = input.ReadUInt32();
							continue;
						}
						if (num == 80U)
						{
							this.Retcode = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 98U)
				{
					if (num == 90U)
					{
						this.requestList_.AddEntriesFrom(ref input, EndDrinkMakerSequenceScRsp._repeated_requestList_codec);
						continue;
					}
					if (num == 98U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Tips = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001308 RID: 4872
		private static readonly MessageParser<EndDrinkMakerSequenceScRsp> _parser = new MessageParser<EndDrinkMakerSequenceScRsp>(() => new EndDrinkMakerSequenceScRsp());

		// Token: 0x04001309 RID: 4873
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400130A RID: 4874
		public const int NextSequenceIdFieldNumber = 2;

		// Token: 0x0400130B RID: 4875
		private uint nextSequenceId_;

		// Token: 0x0400130C RID: 4876
		public const int GuestFieldNumber = 1;

		// Token: 0x0400130D RID: 4877
		private DrinkMakerGuest guest_;

		// Token: 0x0400130E RID: 4878
		public const int TipsFieldNumber = 15;

		// Token: 0x0400130F RID: 4879
		private uint tips_;

		// Token: 0x04001310 RID: 4880
		public const int ExpFieldNumber = 14;

		// Token: 0x04001311 RID: 4881
		private uint exp_;

		// Token: 0x04001312 RID: 4882
		public const int LevelFieldNumber = 6;

		// Token: 0x04001313 RID: 4883
		private uint level_;

		// Token: 0x04001314 RID: 4884
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04001315 RID: 4885
		private uint retcode_;

		// Token: 0x04001316 RID: 4886
		public const int RequestListFieldNumber = 11;

		// Token: 0x04001317 RID: 4887
		private static readonly FieldCodec<FGMHFCNKNBD> _repeated_requestList_codec = FieldCodec.ForMessage<FGMHFCNKNBD>(90U, FGMHFCNKNBD.Parser);

		// Token: 0x04001318 RID: 4888
		private readonly RepeatedField<FGMHFCNKNBD> requestList_ = new RepeatedField<FGMHFCNKNBD>();

		// Token: 0x04001319 RID: 4889
		public const int RewardFieldNumber = 12;

		// Token: 0x0400131A RID: 4890
		private ItemList reward_;
	}
}
